package com.boot.project.dao;

import com.boot.project.domain.OrderDo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrderDao {
    int add(OrderDo orderDo);//添加订单

    List<OrderDo> list(Map<String, Object> params);//查询所有订单

    List<OrderDo> listBy(Map<String, Object> params);//根据某个指定值查询订单

    List<OrderDo> listByopenId(OrderDo orderDo);

    int remove(OrderDo orderDo);//删除订单

    int update(OrderDo orderDo);//更新订单

    Integer count();

    List<OrderDo> unpaid(String openId);

    List<OrderDo> paid(String openId);

    Integer listByCount(String openId);

    List<OrderDo> orderRecord(String openId);

    Integer changeOrderStatus(Map<String, Object> params);

}
